package ca.jsbr.tinyUI.general 
{
	import ca.jsbr.as2js_lib.display.canvas.Node2D;
	import ca.jsbr.as2js_lib.display.canvas.view.TextView;
	/**
	 * ...
	 * @author jsbr [me@jsbr.ca]
	 */
	public class QuickText extends Node2D
	{
		private var _input:Boolean;
		private var _txt:TextView;
		
		public function QuickText(text:String="",input:Boolean=false) 
		{
			_txt = new TextView();
			_txt.fontFamily = "verdana";
			_txt.fontSize = 11;
			_txt.textColor = "#666666";
			text = text;
			addChild(_txt);
		}
		
		override public function redraw(child:Boolean=false):void {
			
		}
		
		public function get text():String 
		{ 
			return _txt.text; 
		}
		
		public function set text(value:String):void 
		{
			_txt.text = value;
			_width = _txt.width;
			_height = _txt.height;
		}

	}

}